#include<stdio.h>
#include<unistd.h>
int main(){
  pid_t ret = fork();
  if(ret < 0){
    perror("fork");
    return 0;
  }
  else if(ret == 0){
    printf("i am child process");
  }
  else{
    while(1){
      printf("i am father process"); 
      sleep(1);
    }
  }
  return 0;
}
